import request from '@/utils/request'

/**
 * 查询控制箱型号列表
 * @param query
 * @returns {*}
 */
export function listProperty(query) {
  return request({
    url: '/ops/dict/property/list',
    method: 'post',
    params: query
  })
}

/**
 * 分页查询控制箱型号
 * @param query
 * @returns {*}
 */
export function pageProperty(query) {
  return request({
    url: '/ops/dict/property/page',
    method: 'post',
    params: query
  })
}

/**
 * 新增控制箱型号
 * @param data
 * @returns {*}
 */
export function addProperty(data) {
  return request({
    url: '/ops/dict/property',
    method: 'post',
    data: data
  })
}

/**
 * 更新控制箱型号
 * @param data
 * @returns {*}
 */
export function editProperty(data) {
  return request({
    url: '/ops/dict/property',
    method: 'put',
    data: data
  })
}

/**
 * 删除控制箱型号
 * @param data
 * @returns {*}
 */
export function removeProperty(data) {
  return request({
    url: '/ops/dict/property/'+data,
    method: 'delete'
  })
}
